package by.amakarevich.services;


import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Accessories;
import by.amakarevich.datamodel.Product;

public interface AccessoriesService {

	@Transactional
	void createNewAccessories(Accessories accesories, Product product);
	
	@Transactional
	Accessories get(Long id);
	
	@Transactional
	void updateAccessories(Accessories accessories);
	
	@Transactional
	void removeAccessories(Long id);
	
	@Transactional
    void deleteAll();
}
